package com.yehangtech.designpattern.结构型_组合模式.service;

public abstract class Component {

    public abstract String printSelf();

    public void addChild(Component child) {
        throw new RuntimeException("叶子节点不能添加子节点");
    }
}
